package task11;

import java.util.Scanner;

public class Test2 {
    public static void main(String[] args) {
        System.out.println("请输入几行：");
        Scanner row=new Scanner(System.in);
        int n=row.nextInt();
        for(int i=1;i<=n;i++){
            for(int k=1;k<=n-i;k++){
                System.out.print(" ");
            }
            for(int j=1;j<2*i-1;j++) {
                System.out.print("*");
            }
            System.out.println("");
        }
    }
}
